package Factory;

import DAO.DAO;

public abstract class DAOFactory {

    static final int POSTGREDAOFACTORY = 1;
    static final int MYSQLDAOFACTORY = 2;

    protected abstract DAO getMasterDAO();

    protected abstract DAO getEnseignementDAO();

    protected abstract DAO getEtudiantDAO();

    protected abstract DAO getInscriptionDAO();

    public static DAOFactory getDAOFActory(int i){
        switch(i){
            case 1:{
                return new PostgreDAOFactory();
            }
            default:{
                return new MySQLDAOFactory();
            }
        }
    }
}
